home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / raytr / r3vsph.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.4 KB  |  60 lines

  1.  
  2. // JavaScript wrapper for r3vsph.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_VSPHERE_H = 1;
  7. include("real/raytr/r3frobj.js")
  8. include("oops/r3vector.js")
  9.  
  10.  
  11. var R3CLID_VSPHERE = 166;
  12.  
  13.  
  14.  
  15.  
  16. R3VSPHA_Center = 166500;
  17. function SetR3VSPHA_Center(value) {
  18.   R3Set(this.r3obj, R3VSPHA_Center, value, R3TID_VECTOR, 0); 
  19. }
  20.  
  21. function GetR3VSPHA_Center() {
  22.   return R3Get(this.r3obj, R3VSPHA_Center, R3TID_VECTOR, 0); 
  23. }
  24.  
  25. R3VSPHA_Radius = 166501;
  26. function SetR3VSPHA_Radius(value) {
  27.   R3Set(this.r3obj, R3VSPHA_Radius, value, R3TID_FLOAT, 0); 
  28. }
  29.  
  30. function GetR3VSPHA_Radius() {
  31.   return R3Get(this.r3obj, R3VSPHA_Radius, R3TID_FLOAT, 0); 
  32. }
  33.  
  34. R3VSPHA_RadiusSquared = 166502;
  35. function SetR3VSPHA_RadiusSquared(value) {
  36.   R3Set(this.r3obj, R3VSPHA_RadiusSquared, value, R3TID_FLOAT, 0); 
  37. }
  38.  
  39. function GetR3VSPHA_RadiusSquared() {
  40.   return R3Get(this.r3obj, R3VSPHA_RadiusSquared, R3TID_FLOAT, 0); 
  41. }
  42.  
  43.  
  44.  
  45. function r3Vsphere () { 
  46.    this.base = r3God;
  47.    if(arguments.length) {
  48.       this.base(R3CLID_VSPHERE, arguments);
  49.    }
  50.    // Attributes
  51.    this.GetCenter=GetR3VSPHA_Center;
  52.    this.SetCenter=SetR3VSPHA_Center;
  53.    this.GetRadius=GetR3VSPHA_Radius;
  54.    this.SetRadius=SetR3VSPHA_Radius;
  55.    this.GetRadiusSquared=GetR3VSPHA_RadiusSquared;
  56.    this.SetRadiusSquared=SetR3VSPHA_RadiusSquared;
  57. }
  58.  
  59. r3Vsphere.prototype=new r3Frobject;
  60. // r3vsph.h_H